// 导入数据
// const xAxisData = ['高数', '大英', '大物', 'C嘎嘎', '网络', '近代史', '电路']
// const seriesData = [72, 43, 84, 98, 35, 140, 60]
const seriesData = [
	{ value: 72, name: '高数' },
	{ value: 43, name: '大英' },
	{ value: 84, name: '大物' },
	{ value: 98, name: 'C嘎嘎' },
	{ value: 35, name: '网络' },
	{ value: 62, name: '近代史' },
	{ value: 60, name: '电路' }
]

export default {
	title: {
		text: '饼状图',
		// subtext: 'Fake Data',
		left: 'center',
		top: '20' // 与顶部距离
	},
	tooltip: {
		trigger: 'item'
	},
	legend: {
		orient: 'vertical',
		icon: 'circle',
		left: 'left'
	},
	series: [
		{
			name: '科目',
			type: 'pie',
			radius: '50%',
			data: seriesData,
			label: {
				show: true,
				position: 'top'
			},

			emphasis: {
				itemStyle: {
					shadowBlur: 10,
					shadowOffsetX: 0,
					shadowColor: 'rgba(0, 0, 0, 0.5)'
				}
			}
		}
	]
}
